package com.chezhujie.www.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by 汤伟杰 on 2017/6/23.
 */
@Controller
@RequestMapping("/frontAdmin")
public class FrontAdminController {
    @RequestMapping("/index.do")
    public String index(HttpServletRequest req, HttpServletResponse resp,
                        ModelMap model) {
        return "frontAdmin/index";
    }
    @RequestMapping(value = "/login.do",method = RequestMethod.GET)
    public String loginGet(HttpServletRequest req, HttpServletResponse resp,
                        ModelMap model) {
        return "frontAdmin/login";
    }
    @RequestMapping(value="/login.do",method = RequestMethod.POST)
    public String loginPost(HttpServletRequest req, HttpServletResponse resp,
                        ModelMap model) {
        return "frontAdmin/login";
    }
}
